<?php
require_once dirname(__FILE__) . '/ORMBase.class.php';
function classToOrm($class = NULL) {
  $class = strtolower($class);
  switch ($class) {
    case 'contract':
      require_once dirname(__FILE__) . '/ORMContract.class.php';
      return new ORMContract();
    case 'customer':
      require_once dirname(__FILE__) . '/ORMCustomer.class.php';
      return new ORMCustomer();
    case 'customercontact':
      require_once dirname(__FILE__) . '/ORMCustomerContact.class.php';
      return new ORMCustomerContact();
    case 'datezone':
      require_once dirname(__FILE__) . '/ORMDateZone.class.php';
      return new ORMDateZone();
    case 'expense':
      require_once dirname(__FILE__) . '/ORMExpense.class.php';
      return new ORMExpense();
    case 'iceremony':
      require_once dirname(__FILE__) . '/ORMICeremony.class.php';
      return new ORMICeremony();
    case 'icourier':
      require_once dirname(__FILE__) . '/ORMICourier.class.php';
      return new ORMICourier();
    case 'iculture':
      require_once dirname(__FILE__) . '/ORMICulture.class.php';
      return new ORMICulture();
    case 'iparticular':
      require_once dirname(__FILE__) . '/ORMIParticular.class.php';
      return new ORMIParticular();
    case 'ipayee':
      require_once dirname(__FILE__) . '/ORMIPayee.class.php';
      return new ORMIPayee();
    case 'ireception':
      require_once dirname(__FILE__) . '/ORMIReception.class.php';
      return new ORMIReception();
    case 'isource':
      require_once dirname(__FILE__) . '/ORMISource.class.php';
      return new ORMISource();
    case 'myorder':
      require_once dirname(__FILE__) . '/ORMMyOrder.class.php';
      return new ORMMyOrder();
    case 'myordercancel':
      require_once dirname(__FILE__) . '/ORMMyOrderCancel.class.php';
      return new ORMMyOrderCancel();
    case 'myordernote':
      require_once dirname(__FILE__) . '/ORMMyOrderNote.class.php';
      return new ORMMyOrderNote();
    case 'myorderpackage':
      require_once dirname(__FILE__) . '/ORMMyOrderPackage.class.php';
      return new ORMMyOrderPackage();
    case 'package':
      require_once dirname(__FILE__) . '/ORMPackage.class.php';
      return new ORMPackage();
    case 'packageitem':
      require_once dirname(__FILE__) . '/ORMPackageItem.class.php';
      return new ORMPackageItem();
    case 'packageitemselect':
      require_once dirname(__FILE__) . '/ORMPackageItemSelect.class.php';
      return new ORMPackageItemSelect();
    case 'payment':
      require_once dirname(__FILE__) . '/ORMPayment.class.php';
      return new ORMPayment();
    case 'produce':
      require_once dirname(__FILE__) . '/ORMProduce.class.php';
      return new ORMProduce();
    case 'produceevent':
      require_once dirname(__FILE__) . '/ORMProduceEvent.class.php';
      return new ORMProduceEvent();
    case 'produceitemmail':
      require_once dirname(__FILE__) . '/ORMProduceItemMail.class.php';
      return new ORMProduceItemMail();
    case 'produceitemuser':
      require_once dirname(__FILE__) . '/ORMProduceItemUser.class.php';
      return new ORMProduceItemUser();
    case 'producenote':
      require_once dirname(__FILE__) . '/ORMProduceNote.class.php';
      return new ORMProduceNote();
    case 'producepurchaseitem':
      require_once dirname(__FILE__) . '/ORMProducePurchaseItem.class.php';
      return new ORMProducePurchaseItem();
    case 'producepurchaseitemselect':
      require_once dirname(__FILE__) . '/ORMProducePurchaseItemSelect.class.php';
      return new ORMProducePurchaseItemSelect();
    case 'produceselect':
      require_once dirname(__FILE__) . '/ORMProduceSelect.class.php';
      return new ORMProduceSelect();
    case 'producetrack':
      require_once dirname(__FILE__) . '/ORMProduceTrack.class.php';
      return new ORMProduceTrack();
    case 'producetrackuser':
      require_once dirname(__FILE__) . '/ORMProduceTrackUser.class.php';
      return new ORMProduceTrackUser();
    case 'producetransition':
      require_once dirname(__FILE__) . '/ORMProduceTransition.class.php';
      return new ORMProduceTransition();
    case 'produceuser':
      require_once dirname(__FILE__) . '/ORMProduceUser.class.php';
      return new ORMProduceUser();
    case 'purchaseitem':
      require_once dirname(__FILE__) . '/ORMPurchaseItem.class.php';
      return new ORMPurchaseItem();
    case 'purchaseitemselect':
      require_once dirname(__FILE__) . '/ORMPurchaseItemSelect.class.php';
      return new ORMPurchaseItemSelect();
    case 'purchasenote':
      require_once dirname(__FILE__) . '/ORMPurchaseNote.class.php';
      return new ORMPurchaseNote();
    case 'sample':
      require_once dirname(__FILE__) . '/ORMSample.class.php';
      return new ORMSample();
    case 'sampleattribute':
      require_once dirname(__FILE__) . '/ORMSampleAttribute.class.php';
      return new ORMSampleAttribute();
    case 'sampleattributeoption':
      require_once dirname(__FILE__) . '/ORMSampleAttributeOption.class.php';
      return new ORMSampleAttributeOption();
    case 'user':
      require_once dirname(__FILE__) . '/ORMUser.class.php';
      return new ORMUser();
    case 'userskill':
      require_once dirname(__FILE__) . '/ORMUserSkill.class.php';
      return new ORMUserSkill();
    case 'wagedate':
      require_once dirname(__FILE__) . '/ORMWageDate.class.php';
      return new ORMWageDate();
    case 'v1sample':
      require_once dirname(__FILE__) . '/ORMv1sample.class.php';
      return new ORMv1sample();
    case 'v1sampleattribute':
      require_once dirname(__FILE__) . '/ORMv1sampleattribute.class.php';
      return new ORMv1sampleattribute();
    case 'v1sampleattributeoption':
      require_once dirname(__FILE__) . '/ORMv1sampleattributeoption.class.php';
      return new ORMv1sampleattributeoption();
    case 'v1user':
      require_once dirname(__FILE__) . '/ORMv1user.class.php';
      return new ORMv1user();
    default:
      return NULL;
  }
  return NULL;
}
?>
